package cpr.data;

import cpr.Rule;
import cpr.Utils;

public class SplitCluster {
	public Rule aRule;
	public int _counter;
	public HLVector aVector;
	public int accordingToRule =-1;
	public SplitCluster(SplitCluster copy) {
		aRule = copy.aRule;
		_counter = copy._counter;
		aVector = copy.aVector;
	}
	public SplitCluster(Rule rule, HLVector vector) {
		aRule = rule;
		_counter = 0;
		aVector = vector;
	}
	public int getCounter() {
		return _counter;
	}
	
	public void setCounter(int c) {
		_counter = c;
	}
	
	public int getAccordingToRule() {
		if (accordingToRule==-1) {
			accordingToRule = Utils.printRuleAccordingToVectorDigital(aRule, aVector);
		}
		return accordingToRule;
	}
}
